<?php 
/**
 * 车辆数据模型model类
 * @Author    紫梦
 * @DateTime  2018-02-06
 * @copyright 响响租车
 * @version   1.0
 */
namespace app\common\model;
use think\Model;

class VisitLog extends Model
{
	
	protected $autoWriteTimestamp = true;

	public function nodes()
	{

		return $this->hasOne('Nodes','node_value','node_value');
	}

	public function admin(){
		return $this->hasOne('Admin','id','user_id');
	}
}